export const http = axios.create({
  baseURL: "http://useker.cn",
  timeout: 3000,
  headers: {},
});

http.interceptors.request.use(
  function (config) {
    config.headers["contentType"] = "application/x-www-form-urlencoded";
    return config;
  },
  function (error) {
    return Promise.reject(error);
  }
);

http.interceptors.response.use(
  function (response) {
    return response;
  },
  function (error) {
    return Promise.reject(error);
  }
);
